package com.corona.game;

import java.util.ArrayList;

/* compiled from: Player.java */
/* access modifiers changed from: package-private */
/* loaded from: pokewilds.jar:com/pkmngen/game/AnimationContainer.class */
public class AnimationContainer<E> {
    public ArrayList<E> animateThese = new ArrayList<>();
    public ArrayList<Integer> numFrames = new ArrayList<>();
    public int index = 0;

    public void add(E thing, int numFrames) {
        this.animateThese.add(thing);
        this.numFrames.add(Integer.valueOf(numFrames));
    }

    public int currentFrame() {
        return this.numFrames.get(this.index).intValue();
    }

    public E currentThing() {
        return this.animateThese.get(this.index);
    }
}
